home *** CD-ROM | disk | FTP | other *** search
/ PC User 2003 January / Disc 3 / Amethyst.iso / live / usr / X11R6 / lib / X11 / etc / xterm.terminfo < prev   
Encoding:
Text File  |  2002-11-14  |  21.5 KB  |  962 lines

  1. # $Xorg: terminfo,v 1.3 2000/08/17 19:55:10 cpqbld Exp $
  2. #
  3. # meml locks memory above the cursor; memu unlocks (ala HP terminals)
  4. #
  5. # XFree86 updates/notes/new entries (including xterm-8bit, xterm-16color)
  6. # - Thomas E. Dickey
  7. #
  8. # $XFree86: xc/programs/xterm/terminfo,v 3.45 2001/04/12 01:02:51 dickey Exp $
  9. #
  10. # Special Capabilities:
  11. # --------------------
  12. # ich has a corresponding capability that inserts a single blank.  We could
  13. #    have used ich1=\E[@, which works with ncurses, but that is not standard
  14. #    behavior.  If it is set, then SVr4 vi (e.g., Solaris 2.6) emits both
  15. #    smir/rmir and ich1.
  16. # meml locks memory above the cursor; memu unlocks (ala HP terminals).  This
  17. #    is not recognized by some older (e.g., SVr3) tic programs, but none
  18. #    do more than warn about it.  Ignore the warning.
  19. # smcup clears memory before switching to the alternate screen.  The older
  20. #    (deprecated) \E[?47h did not do this, requiring applications to
  21. #    embed a \E[2J in the rmcup string.  However, that behavior cannot
  22. #    be disabled via titeInhibit, making that resource not function as
  23. #    intended on systems with terminfo.
  24. # rs2/is2 are shorter with XFree86 xterm because it supports DECSTR.  We
  25. #    use the shorter sequence for compatibility with the termcap, which
  26. #    is trimmed to keep it shorter than 1023 characters.  It (escape \E[!p)
  27. #    replaces these in the conventional vt100 reset-string:
  28. #        \E7    - save cursor (fixes origin-mode side-effect)
  29. #        \E[r    - reset scrolling margins
  30. #        \E[m    - reset SGR (including color)
  31. #        \E[?7h    - reset wraparound mode (DECAWM)
  32. #        \E[?1l    - reset application cursor keys (DECCKM)
  33. #        \E[?6l    - reset origin mode (DECOM)
  34. #        \E8    - restore cursor
  35. #    DECSTR is recognized by XFree86 xterm even in vt52 mode.
  36. #
  37. # Editing Keypad:
  38. # --------------
  39. # XFree86 xterm emulates vt220 if the decTerminalID resource is set to 200 or
  40. # higher.  Otherwise it emulates a vt100 or vt52 depending on the value of the
  41. # resource.  When emulating a vt220, we support the editing keypad.  Sun and PC
  42. # keyboards have an editing keypad which is similar to the vt220:
  43. #
  44. #    VT220 editing keypad
  45. #    ----------------------------
  46. #    Find      Insert      Remove
  47. #    Select    Prev        Next
  48. #    ----------------------------
  49. #
  50. #    Sun/PC editing keypad
  51. #    ----------------------------
  52. #    Insert    Home        PageUp
  53. #    Delete    End         PageDn
  54. #    ----------------------------
  55. #
  56. # If the sunKeyboard resource is true, we map it this way (adjusting the values
  57. # of Home, End and Delete):
  58. #    VT220              Sun/PC
  59. #    ----------------------------
  60. #    Find              Home
  61. #    Select              End
  62. #    Insert              Insert
  63. #    Remove              Delete
  64. #    Prev              PageUp
  65. #    Next              PageDn
  66. #    ----------------------------
  67. #
  68. # Note that all of the keys on the editing keypad transmit escape sequences.  A
  69. # vt220 does this only when in vt220 mode; when emulating a vt100 the editing
  70. # keypad is inactive.
  71. #
  72. # Alternative keycodes:
  73. # --------------------
  74. # Several of the function keys have alternative names, depending on the type of
  75. # host which your xterm is connected to.  DEC (i.e., the VMS system) uses F15
  76. # as the HELP key, F16 as the DO key.  Unix applications generally do not do
  77. # this.  Curses applications in particular, assign a unique keycode to each
  78. # capability string.  These terminal descriptions do not have conflicting
  79. # definitions, to ensure that Unix curses applications use a consistent set of
  80. # keycodes.  To get a VMS-bias, make these substitutions:
  81. #    1. change khome to kfnd
  82. #    2. change kend to kslt
  83. # The original xterm-r6 entry does in fact have a VMS bias.
  84. #
  85. # Some legacy applications using the termcap emulation may expect kll where
  86. # we have specified kend.
  87. #
  88. # Function keys with modifiers (Sun/PC):
  89. # -------------------------------------
  90. #    Shift-Fx          - kf{12+x}
  91. #    Control-Fx        - kf{24+x}
  92. #    Shift-Control-Fx  - kf{36+x}
  93. #
  94. # The terminfo defines some special keys which are documented as "shifted",
  95. # e.g., kDC is shifted-delete-character.  In this description, the modifier is
  96. # actually the control key, to avoid conflict with the common usage of shifted
  97. # pageup and pagedown for window manager functions. 
  98. #
  99. xterm-xfree86|xterm-new|xterm terminal emulator (XFree86),
  100.     npc,
  101.     kDC=\E[3;2~,
  102.     kEND=\EO2F,
  103.     kHOM=\EO2H,
  104.     kIC=\E[2;2~,
  105.     kLFT=\EO2D,
  106.     kNXT=\E[6;2~,
  107.     kPRV=\E[5;2~,
  108.     kRIT=\EO2C,
  109.     kb2=\EOE,
  110.     kcbt=\E[Z,
  111.     kcub1=\EOD,
  112.     kcud1=\EOB,
  113.     kcuf1=\EOC,
  114.     kcuu1=\EOA,
  115.     kend=\EOF,
  116.     kent=\EOM,
  117.     kf1=\EOP,
  118.     kf10=\E[21~,
  119.     kf11=\E[23~,
  120.     kf12=\E[24~,
  121.     kf13=\EO2P,
  122.     kf14=\EO2Q,
  123.     kf15=\EO2R,
  124.     kf16=\EO2S,
  125.     kf17=\E[15;2~,
  126.     kf18=\E[17;2~,
  127.     kf19=\E[18;2~,
  128.     kf2=\EOQ,
  129.     kf20=\E[19;2~,
  130.     kf21=\E[20;2~,
  131.     kf22=\E[21;2~,
  132.     kf23=\E[23;2~,
  133.     kf24=\E[24;2~,
  134.     kf25=\EO5P,
  135.     kf26=\EO5Q,
  136.     kf27=\EO5R,
  137.     kf28=\EO5S,
  138.     kf29=\E[15;5~,
  139.     kf3=\EOR,
  140.     kf30=\E[17;5~,
  141.     kf31=\E[18;5~,
  142.     kf32=\E[19;5~,
  143.     kf33=\E[20;5~,
  144.     kf34=\E[21;5~,
  145.     kf35=\E[23;5~,
  146.     kf36=\E[24;5~,
  147.     kf37=\EO6P,
  148.     kf38=\EO6Q,
  149.     kf39=\EO6R,
  150.     kf4=\EOS,
  151.     kf40=\EO6S,
  152.     kf41=\E[15;6~,
  153.     kf42=\E[17;6~,
  154.     kf43=\E[18;6~,
  155.     kf44=\E[19;6~,
  156.     kf45=\E[20;6~,
  157.     kf46=\E[21;6~,
  158.     kf47=\E[23;6~,
  159.     kf48=\E[24;6~,
  160.     kf5=\E[15~,
  161.     kf6=\E[17~,
  162.     kf7=\E[18~,
  163.     kf8=\E[19~,
  164.     kf9=\E[20~,
  165.     khome=\EOH,
  166.     kich1=\E[2~,
  167.     kmous=\E[M,
  168.     knp=\E[6~,
  169.     kpp=\E[5~,
  170.     use=xterm-basic,
  171. #
  172. # This chunk is used for building the VT220/Sun/PC keyboard variants.
  173. xterm-basic|xterm terminal emulator - common (XFree86),
  174.     am,
  175.     bce,
  176.     km,
  177.     mc5i,
  178.     mir,
  179.     msgr,
  180.     xenl,
  181.     colors#8,
  182.     cols#80,
  183.     it#8,
  184.     lines#24,
  185.     pairs#64,
  186.     acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
  187.     bel=^G,
  188.     blink=\E[5m,
  189.     bold=\E[1m,
  190.     cbt=\E[Z,
  191.     civis=\E[?25l,
  192.     clear=\E[H\E[2J,
  193.     cnorm=\E[?25h,
  194.     cr=^M,
  195.     csr=\E[%i%p1%d;%p2%dr,
  196.     cub=\E[%p1%dD,
  197.     cub1=^H,
  198.     cud=\E[%p1%dB,
  199.     cud1=^J,
  200.     cuf=\E[%p1%dC,
  201.     cuf1=\E[C,
  202.     cup=\E[%i%p1%d;%p2%dH,
  203.     cuu=\E[%p1%dA,
  204.     cuu1=\E[A,
  205.     dch=\E[%p1%dP,
  206.     dch1=\E[P,
  207.     dl=\E[%p1%dM,
  208.     dl1=\E[M,
  209.     ech=\E[%p1%dX,
  210.     ed=\E[J,
  211.     el=\E[K,
  212.     el1=\E[1K,
  213.     enacs=\E(B\E)0,
  214.     flash=\E[?5h$<100/>\E[?5l,
  215.     home=\E[H,
  216.     hpa=\E[%i%p1%dG,
  217.     ht=^I,
  218.     hts=\EH,
  219.     ich=\E[%p1%d@,
  220.     il=\E[%p1%dL,
  221.     il1=\E[L,
  222.     ind=^J,
  223.     invis=\E[8m,
  224.     is2=\E[!p\E[?3;4l\E[4l\E>,
  225.     kbs=^H,
  226.     kdch1=\E[3~,
  227.     mc0=\E[i,
  228.     mc4=\E[4i,
  229.     mc5=\E[5i,
  230.     meml=\El,
  231.     memu=\Em,
  232.     op=\E[39;49m,
  233.     rc=\E8,
  234.     rev=\E[7m,
  235.     ri=\EM,
  236.     rmacs=^O,
  237.     rmam=\E[?7l,
  238.     rmcup=\E[?1049l,
  239.     rmir=\E[4l,
  240.     rmkx=\E[?1l\E>,
  241.     rmso=\E[27m,
  242.     rmul=\E[24m,
  243.     rs1=\Ec,
  244.     rs2=\E[!p\E[?3;4l\E[4l\E>,
  245.     sc=\E7,
  246.     setab=\E[4%p1%dm,
  247.     setaf=\E[3%p1%dm,
  248.     setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
  249.     setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
  250.     sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
  251.     sgr0=\E[m\017,
  252.     smacs=^N,
  253.     smam=\E[?7h,
  254.     smcup=\E[?1049h,
  255.     smir=\E[4h,
  256.     smkx=\E[?1h\E=,
  257.     smso=\E[7m,
  258.     smul=\E[4m,
  259.     tbc=\E[3g,
  260.     u6=\E[%i%d;%dR,
  261.     u7=\E[6n,
  262.     u8=\E[?1;2c,
  263.     u9=\E[c,
  264.     vpa=\E[%i%p1%dd,
  265. #
  266. # The xterm-xfree86 description has all of the features, but is not completely
  267. # compatible with vt220.  If you are using a Sun or PC keyboard, set the
  268. # sunKeyboard resource to true:
  269. #    + maps the editing keypad
  270. #    + interprets control-function-key as a second array of keys, so a
  271. #      12-fkey keyboard can support vt220's 20-fkeys.
  272. #    + maps numeric keypad "+" to ",".
  273. #    + uses DEC-style control sequences for the application keypad.
  274. #      
  275. xterm-vt220|XFree86 xterm emulating vt220,
  276.     ka1=\EOw,
  277.     ka3=\EOy,
  278.     kbeg=\EOu,
  279.     kc1=\EOq,
  280.     kc3=\EOs,
  281.     kcbt=\E[Z,
  282.     kcub1=\EOD,
  283.     kcud1=\EOB,
  284.     kcuf1=\EOC,
  285.     kcuu1=\EOA,
  286.     kend=\E[4~,
  287.     kent=\EOM,
  288.     kf1=\EOP,
  289.     kf10=\E[21~,
  290.     kf11=\E[23~,
  291.     kf12=\E[24~,
  292.     kf13=\E[25~,
  293.     kf14=\E[26~,
  294.     kf15=\E[28~,
  295.     kf16=\E[29~,
  296.     kf17=\E[31~,
  297.     kf18=\E[32~,
  298.     kf19=\E[33~,
  299.     kf2=\EOQ,
  300.     kf20=\E[34~,
  301.     kf3=\EOR,
  302.     kf4=\EOS,
  303.     kf5=\E[15~,
  304.     kf6=\E[17~,
  305.     kf7=\E[18~,
  306.     kf8=\E[19~,
  307.     kf9=\E[20~,
  308.     khome=\E[1~,
  309.     kich1=\E[2~,
  310.     kmous=\E[M,
  311.     knp=\E[6~,
  312.     kpp=\E[5~,
  313.     use=xterm-basic,
  314. #
  315. xterm-vt52|XFree86 xterm emulating dec vt52,
  316.     cols#80,
  317.     it#8,
  318.     lines#24,
  319.     acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
  320.     bel=^G,
  321.     clear=\EH\EJ,
  322.     cr=^M,
  323.     cub1=\ED,
  324.     cud1=\EB,
  325.     cuf1=\EC,
  326.     cup=\EY%p1%' '%+%c%p2%' '%+%c,
  327.     cuu1=\EA,
  328.     ed=\EJ,
  329.     el=\EK,
  330.     home=\EH,
  331.     ht=^I,
  332.     ind=^J,
  333.     kbs=^H,
  334.     kcub1=\ED,
  335.     kcud1=\EB,
  336.     kcuf1=\EC,
  337.     kcuu1=\EA,
  338.     nel=^M^J,
  339.     ri=\EI,
  340.     rmacs=\EG,
  341.     smacs=\EF,
  342. #
  343. # kf30-kf45 are keysyms XK_R1 through XK_R15 on the Sun keyboard.
  344. xterm-sun|XFree86 xterm with sun function keys,
  345.     kb2=\E[218z,
  346.     kcpy=\E[197z,
  347.     kcub1=\EOD,
  348.     kcud1=\EOB,
  349.     kcuf1=\EOC,
  350.     kcuu1=\EOA,
  351.     kdch1=\177,
  352.     kend=\E[220z,
  353.     kent=\EOM,
  354.     kf1=\E[224z,
  355.     kf10=\E[233z,
  356.     kf11=\E[192z,
  357.     kf12=\E[193z,
  358.     kf13=\E[194z,
  359.     kf14=\E[195z,
  360.     kf15=\E[196z,
  361.     kf17=\E[198z,
  362.     kf18=\E[199z,
  363.     kf19=\E[200z,
  364.     kf2=\E[225z,
  365.     kf20=\E[201z,
  366.     kf3=\E[226z,
  367.     kf31=\E[208z,
  368.     kf32=\E[209z,
  369.     kf33=\E[210z,
  370.     kf34=\E[211z,
  371.     kf35=\E[212z,
  372.     kf36=\E[213z,
  373.     kf38=\E[215z,
  374.     kf4=\E[227z,
  375.     kf40=\E[217z,
  376.     kf42=\E[219z,
  377.     kf44=\E[221z,
  378.     kf5=\E[228z,
  379.     kf6=\E[229z,
  380.     kf7=\E[230z,
  381.     kf8=\E[231z,
  382.     kf9=\E[232z,
  383.     kfnd=\E[200z,
  384.     khlp=\E[196z,
  385.     khome=\E[214z,
  386.     kich1=\E[2z,
  387.     kmous=\E[M,
  388.     knp=\E[222z,
  389.     kpp=\E[216z,
  390.     kund=\E[195z,
  391.     use=xterm-basic,
  392. #
  393. xterm-hp|XFree86 xterm with hpterm function keys,
  394.     kclr=\EJ,
  395.     kcub1=\ED,
  396.     kcud1=\EB,
  397.     kcuf1=\EC,
  398.     kcuu1=\EA,
  399.     kdch1=\EP,
  400.     kend=\EF,
  401.     kf1=\Ep,
  402.     kf2=\Eq,
  403.     kf3=\Er,
  404.     kf4=\Es,
  405.     kf5=\Et,
  406.     kf6=\Eu,
  407.     kf7=\Ev,
  408.     kf8=\Ew,
  409.     khome=\Eh,
  410.     kich1=\EQ,
  411.     knp=\ES,
  412.     kpp=\ET,
  413.     use=xterm-basic,
  414. xterm-sco|XFree86 xterm with SCO function keys,
  415.     kcub1=\E[D,
  416.     kcud1=\E[B,
  417.     kcuf1=\E[C,
  418.     kcuu1=\E[A,
  419.     kend=\E[F,
  420.     kf1=\E[M,
  421.     kf10=\E[V,
  422.     kf11=\E[W,
  423.     kf12=\E[X,
  424.     kf13=\E[Y,
  425.     kf15=\E[a,
  426.     kf16=\E[b,
  427.     kf17=\E[c,
  428.     kf18=\E[d,
  429.     kf19=\E[e,
  430.     kf2=\E[N,
  431.     kf20=\E[f,
  432.     kf21=\E[g,
  433.     kf22=\E[h,
  434.     kf23=\E[i,
  435.     kf24=\E[j,
  436.     kf25=\E[k,
  437.     kf26=\E[l,
  438.     kf27=\E[m,
  439.     kf28=\E[n,
  440.     kf29=\E[o,
  441.     kf3=\E[O,
  442.     kf30=\E[p,
  443.     kf31=\E[q,
  444.     kf32=\E[r,
  445.     kf33=\E[s,
  446.     kf34=\E[t,
  447.     kf35=\E[u,
  448.     kf4=\E[P,
  449.     kf5=\E[Q,
  450.     kf6=\E[R,
  451.     kf7=\E[S,
  452.     kf8=\E[T,
  453.     kf9=\E[U,
  454.     khome=\E[H,
  455.     kich1=\E[L,
  456.     knp=\E[G,
  457.     kpp=\E[I,
  458.     use=xterm-basic,
  459. #
  460. # Other variants:
  461. xterm-24|xterms|vs100|xterm terminal emulator (X Window System),
  462.     lines#24,
  463.     use=xterm,
  464. xterm-65|xterm with tall window 65x80 (X Window System),
  465.     lines#65,
  466.     use=xterm,
  467. xterm-bold|xterm with bold instead of underline (X Window System),
  468.     smso=\E[7m,
  469.     smul=\E[1m,
  470.     use=xterm,
  471. xterm-boldso|xterm with bold for standout (X Window System),
  472.     rmso=\E[m,
  473.     smso=\E[1m,
  474.     use=xterm,
  475. xterm-mono|monochrome xterm,
  476.     bce@,
  477.     colors@,
  478.     ncv@,
  479.     pairs@,
  480.     op@,
  481.     setab@,
  482.     setaf@,
  483.     setb@,
  484.     setf@,
  485.     sgr@,
  486.     use=xterm,
  487. #
  488. # VTxxx terminals are usually set up so that full-screen applications will use
  489. # the cursor application mode strings.  This is good for full-screen
  490. # applications, including legacy applications which may have hard-coded
  491. # behavior, but bad for interactive shells (e.g., tcsh, bash) which use arrow
  492. # keys to scroll through a history of command strings.
  493. #
  494. # To see the difference between normal/application modes, consider this example:
  495. #    + In normal (non-application) mode, the terminal transmits a down-arrow
  496. #      as \E[C, which happens to echo as a down-arrow.
  497. #    + In application mode the terminal transmits \EOC, which echoes as C.
  498. #      That is because the \EO is the SS3 control, which says to use the
  499. #      character from the G3 character set for the next cell.
  500. # One example of hard-coded behavior would be for applications written to work
  501. # with VT52 and VT100 terminals.  If the application's parser ignores 'O' and
  502. # '?' characters after the escape, then the cursor and keypad strings for the
  503. # two terminals are the same.  (Indeed, one of the first curses applications
  504. # which I used did something like this to cover "ANSI" terminals -TD).
  505. #
  506. # To make this work (leaving the cursor keys in normal mode), we have to adjust
  507. # the terminal initialization sequences:
  508. #
  509. #    smkx/rmkx set/reset the cursor and keypad application modes.  We retain
  510. #        the latter (otherwise many applications fail).
  511. #
  512. #    smcup/rmcup set/restore cursor-addressing mode for full-screen
  513. #        applications.  For xterm, this normally means the alternate
  514. #        screen, which is not compatible with interactive shells.  Some
  515. #        programs are "smart" and disable these.
  516. #
  517. xterm-noapp|xterm with cursor keys in normal mode,
  518.     kcub1=\E[D,
  519.     kcud1=\E[B,
  520.     kcuf1=\E[C,
  521.     kcuu1=\E[A,
  522.     rmcup@,
  523.     rmkx=\E>,
  524.     smcup@,
  525.     smkx=\E=,
  526.     use=xterm,
  527. #
  528. # This should work for the commonly used "color xterm" variations (XFree86
  529. # xterm, color_xterm, nxterm, rxvt).  Note that it does not set 'bce', so for
  530. # XFree86 and and rxvt, some applications that use colors will be less
  531. # efficient, and in a few special cases (with "smart" optimization) the wrong
  532. # color will be painted in spots.
  533. xterm-color|generic "ANSI" color xterm (X Window System),
  534.     colors#8,
  535.     ncv@,
  536.     pairs#64,
  537.     op=\E[m,
  538.     setab=\E[4%p1%dm,
  539.     setaf=\E[3%p1%dm,
  540.     use=xterm-r6,
  541. #
  542. # vi may work better with this entry, because vi
  543. # doesn't use insert mode much
  544. xterm-ic|xterm-vi|xterm with insert character instead of insert mode,
  545.     mir@,
  546.     ich=\E[%p1%d@,
  547.     ich1=\E[@,
  548.     rmir@,
  549.     smir@,
  550.     use=xterm,
  551. #
  552. # This is used only for testing (it's not relevant to DEC VTxxx terminals, but
  553. # to ncurses).
  554. xterm-xmc|xterm with magic-cookie glitch,
  555.     xmc#1,
  556.     use=xterm-xfree86,
  557. #
  558. # This one also is primarily for testing ncurses; while the ISO 6429 defines
  559. # the REP control, none of the DEC VTxxx terminals (VT52 through VT420) support
  560. # it.
  561. xterm-rep|xterm with repeat-character control,
  562.     rep=%p1%c\E[%p2%{1}%-%db,
  563.     use=xterm-xfree86,
  564. #
  565. # This is mainly for testing xterm; the real VT220 will not let you switch
  566. # character sets without first altering the keyboard language in the setup
  567. # screen.  Some emulators allow this anyway.  (Note that these strings are
  568. # normally used only for printers).  The parameter to csnm and scs is the same
  569. # in both cases:  the keyboard language parameter returned by CSI ? 2 6 n.
  570. xterm-nrc|xterm with VT220 national replacement character sets,
  571.     csnm=%?%p1%{1}%=%tNorth American%e%p1%{2}%=%tBritish%e%p1%{3}%=%tFlemish%e%p1%{4}%=%tFrench Canadian%e%p1%{5}%=%tDanish%e%p1%{6}%=%tFinnish%e%p1%{7}%=%tGerman%e%p1%{8}%=%tDutch%e%p1%{9}%=%tItalian%e%p1%{10}%=%tSwiss (French)%e%p1%{11}%=%tSwiss (German)%e%p1%{12}%=%tSwedish%e%p1%{13}%=%tNorwegian%e%p1%{14}%=%tFrench/Belgian%e%p1%{15}%=%tSpanish%;,
  572.     scs=%?%p1%{1}%=%t\E(B%e%p1%{2}%=%t\E(A%e%p1%{3}%=%t\E(R%e%p1%{4}%=%t\E(9%e%p1%{5}%=%t\E(E%e%p1%{6}%=%t\E(5%e%p1%{7}%=%t\E(K%e%p1%{8}%=%t\E(4%e%p1%{9}%=%t\E(Y%e%p1%{10}%=%t\E(=%e%p1%{11}%=%t\E(=%e%p1%{12}%=%t\E(7%e%p1%{13}%=%t\E(E%e%p1%{14}%=%t\E(R%e%p1%{15}%=%t\E(Z%;,
  573.     use=xterm-xfree86,
  574. #
  575. # Foreground 0-15 maps (with toggles) into 30-37 & 90-97
  576. # Background 0-15 maps (with toggles) into 40-47 & 100-107
  577. #
  578. # Originally I suppressed setaf/setab, since ANSI specifies only 8 colors, but
  579. # Stephen Marley persuaded me to allow the "ANSI" color controls to extend to
  580. # 16 colors.  (Note that ncurses 4.2 uses setf/setb from this description;
  581. # however 5.0 selects either according to their availability).  - T.Dickey
  582. #
  583. # SVr4 curses does not use more than 8 colors anyway, so using 16 colors is
  584. # either for terminfo-level applications or via ncurses.
  585. xterm-16color|xterm with 16 colors,
  586.     colors#16,
  587.     ncv#32,
  588.     pairs#256,
  589.     setab=\E[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm,
  590.     setaf=\E[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm,
  591.     setb=%p1%{8}%/%{6}%*%{4}%+\E[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e%ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m,
  592.     setf=%p1%{8}%/%{6}%*%{3}%+\E[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e%ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m,
  593.     use=xterm-xfree86,
  594. #
  595. # OPT_PC_MODE should be settable with OSC, and the init for this
  596. # should turn it off; then ncv could be 0.
  597. # This uses RGB values 0..1000
  598. xterm-256color|xterm with 256 colors,
  599.     ccc,
  600.     colors#256,
  601.     ncv#32,
  602.     pairs#256,
  603.     initc=\E]4;%p1%d;rgb\:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\\,
  604.     setab=\E[48;5;%p1%dm,
  605.     setaf=\E[38;5;%p1%dm,
  606.     setb=\E[48;5;%p1%dm,
  607.     setf=\E[38;5;%p1%dm,
  608.     use=xterm-xfree86,
  609. xterm-88color|xterm with 88 colors,
  610.     colors#88,
  611.     pairs#88,
  612.     use=xterm-256color,
  613. #
  614. # This is an 8-bit version of xterm, which emulates DEC vt220 with ANSI color.
  615. # To use it, your decTerminalID resource must be set to 200 or above, and the
  616. # sunKeyboard resource set to true.
  617. #
  618. #    HTS    \E H    \210
  619. #    RI    \E M    \215
  620. #    SS3    \E O    \217
  621. #    CSI    \E [    \233
  622. #
  623. xterm-8bit|xterm terminal emulator with 8-bit controls (X Window System),
  624.     am,
  625.     bce,
  626.     km,
  627.     mc5i,
  628.     mir,
  629.     msgr,
  630.     npc,
  631.     xenl,
  632.     colors#8,
  633.     cols#80,
  634.     it#8,
  635.     lines#24,
  636.     pairs#64,
  637.     acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
  638.     bel=^G,
  639.     blink=\2335m,
  640.     bold=\2331m,
  641.     cbt=\233Z,
  642.     civis=\233?25l,
  643.     clear=\233H\2332J,
  644.     cnorm=\233?25h,
  645.     cr=^M,
  646.     csr=\233%i%p1%d;%p2%dr,
  647.     cub=\233%p1%dD,
  648.     cub1=^H,
  649.     cud=\233%p1%dB,
  650.     cud1=^J,
  651.     cuf=\233%p1%dC,
  652.     cuf1=\233C,
  653.     cup=\233%i%p1%d;%p2%dH,
  654.     cuu=\233%p1%dA,
  655.     cuu1=\233A,
  656.     dch=\233%p1%dP,
  657.     dch1=\233P,
  658.     dl=\233%p1%dM,
  659.     dl1=\233M,
  660.     ech=\233%p1%dX,
  661.     ed=\233J,
  662.     el=\233K,
  663.     el1=\2331K,
  664.     enacs=\E(B\E)0,
  665.     flash=\233?5h$<100/>\233?5l,
  666.     home=\233H,
  667.     hpa=\233%i%p1%dG,
  668.     ht=^I,
  669.     hts=\210,
  670.     ich=\233%p1%d@,
  671.     il=\233%p1%dL,
  672.     il1=\233L,
  673.     ind=^J,
  674.     invis=\2338m,
  675.     is2=\E[62"p\E G\233m\233?7h\E>\E7\233?1;3;4;6l\2334l\233r\E8,
  676.     ka1=\217w,
  677.     ka3=\217u,
  678.     kb2=\217y,
  679.     kbeg=\217E,
  680.     kbs=^H,
  681.     kc1=\217q,
  682.     kc3=\217s,
  683.     kcbt=\233Z,
  684.     kcub1=\217D,
  685.     kcud1=\217B,
  686.     kcuf1=\217C,
  687.     kcuu1=\217A,
  688.     kdch1=\2333~,
  689.     kend=\2334~,
  690.     kent=\217M,
  691.     kf1=\23311~,
  692.     kf10=\23321~,
  693.     kf11=\23323~,
  694.     kf12=\23324~,
  695.     kf13=\23325~,
  696.     kf14=\23326~,
  697.     kf15=\23328~,
  698.     kf16=\23329~,
  699.     kf17=\23331~,
  700.     kf18=\23332~,
  701.     kf19=\23333~,
  702.     kf2=\23312~,
  703.     kf20=\23334~,
  704.     kf3=\23313~,
  705.     kf4=\23314~,
  706.     kf5=\23315~,
  707.     kf6=\23317~,
  708.     kf7=\23318~,
  709.     kf8=\23319~,
  710.     kf9=\23320~,
  711.     khome=\2331~,
  712.     kich1=\2332~,
  713.     kmous=\233M,
  714.     knp=\2336~,
  715.     kpp=\2335~,
  716.     mc0=\233i,
  717.     mc4=\2334i,
  718.     mc5=\2335i,
  719.     meml=\El,
  720.     memu=\Em,
  721.     op=\23339;49m,
  722.     rc=\E8,
  723.     rev=\2337m,
  724.     ri=\215,
  725.     rmacs=^O,
  726.     rmam=\233?7l,
  727.     rmcup=\233?1049l,
  728.     rmir=\2334l,
  729.     rmkx=\233?1l\E>,
  730.     rmso=\23327m,
  731.     rmul=\23324m,
  732.     rs1=\Ec,
  733.     rs2=\E[62"p\E G\233m\233?7h\E>\E7\233?1;3;4;6l\2334l\233r\E8,
  734.     sc=\E7,
  735.     setab=\2334%p1%dm,
  736.     setaf=\2333%p1%dm,
  737.     setb=\2334%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
  738.     setf=\2333%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
  739.     sgr=\2330%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
  740.     sgr0=\233m^O,
  741.     smacs=^N,
  742.     smam=\233?7h,
  743.     smcup=\233?1049h,
  744.     smir=\2334h,
  745.     smkx=\233?1h\E=,
  746.     smso=\2337m,
  747.     smul=\2334m,
  748.     tbc=\2333g,
  749.     u6=\233[%i%d;%dR,
  750.     u7=\E[6n,
  751.     u8=\233[?1;2c,
  752.     u9=\E[c,
  753.     vpa=\233%i%p1%dd,
  754. #
  755. # Compatible with the R6 xterm, with the following changes:
  756. #    + added acsc (perhaps some versions of tic assume the standard vt100
  757. #      alternate character set)
  758. #    + added u6, u7, u8, u9 strings for Daniel Weaver's tack program.
  759. #    + added kmous string for ncurses.
  760. #    + added khome/kend strings (which conflict with kfnd/kslt, see note).
  761. xterm-r6|xterm-old|xterm X11R6 version,
  762.     am,
  763.     km,
  764.     mir,
  765.     msgr,
  766.     xenl,
  767.     cols#80,
  768.     it#8,
  769.     lines#24,
  770.     acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
  771.     bel=^G,
  772.     blink@,
  773.     bold=\E[1m,
  774.     clear=\E[H\E[2J,
  775.     cr=^M,
  776.     csr=\E[%i%p1%d;%p2%dr,
  777.     cub=\E[%p1%dD,
  778.     cub1=^H,
  779.     cud=\E[%p1%dB,
  780.     cud1=^J,
  781.     cuf=\E[%p1%dC,
  782.     cuf1=\E[C,
  783.     cup=\E[%i%p1%d;%p2%dH,
  784.     cuu=\E[%p1%dA,
  785.     cuu1=\E[A,
  786.     dch=\E[%p1%dP,
  787.     dch1=\E[P,
  788.     dl=\E[%p1%dM,
  789.     dl1=\E[M,
  790.     ed=\E[J,
  791.     el=\E[K,
  792.     enacs=\E)0,
  793.     home=\E[H,
  794.     ht=^I,
  795.     il=\E[%p1%dL,
  796.     il1=\E[L,
  797.     ind=^J,
  798.     is2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
  799.     kbs=^H,
  800.     kcub1=\EOD,
  801.     kcud1=\EOB,
  802.     kcuf1=\EOC,
  803.     kcuu1=\EOA,
  804.     kdch1=\177,
  805.     kend=\E[4~,
  806.     kf1=\E[11~,
  807.     kf10=\E[21~,
  808.     kf11=\E[23~,
  809.     kf12=\E[24~,
  810.     kf13=\E[25~,
  811.     kf14=\E[26~,
  812.     kf15=\E[28~,
  813.     kf16=\E[29~,
  814.     kf17=\E[31~,
  815.     kf18=\E[32~,
  816.     kf19=\E[33~,
  817.     kf2=\E[12~,
  818.     kf20=\E[34~,
  819.     kf3=\E[13~,
  820.     kf4=\E[14~,
  821.     kf5=\E[15~,
  822.     kf6=\E[17~,
  823.     kf7=\E[18~,
  824.     kf8=\E[19~,
  825.     kf9=\E[20~,
  826.     khome=\E[1~,
  827.     kich1=\E[2~,
  828.     kmous=\E[M,
  829.     knp=\E[6~,
  830.     kpp=\E[5~,
  831.     meml=\El,
  832.     memu=\Em,
  833.     rc=\E8,
  834.     rev=\E[7m,
  835.     ri=\EM,
  836.     rmacs=^O,
  837.     rmcup=\E[2J\E[?47l\E8,
  838.     rmir=\E[4l,
  839.     rmkx=\E[?1l\E>,
  840.     rmso=\E[m,
  841.     rmul=\E[m,
  842.     rs2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
  843.     sc=\E7,
  844.     sgr0=\E[m,
  845.     smacs=^N,
  846.     smcup=\E7\E[?47h,
  847.     smir=\E[4h,
  848.     smkx=\E[?1h\E=,
  849.     smso=\E[7m,
  850.     smul=\E[4m,
  851.     tbc=\E[3g,
  852.     u6=\E[%i%d;%dR,
  853.     u7=\E[6n,
  854.     u8=\E[?1;2c,
  855.     u9=\E[c,
  856. #
  857. # Compatible with the R5 xterm, with the following changes:
  858. #    + changed 'blink=@', to 'blink@' (the former meant that "@" would start
  859. #      a blink, the latter that it is not supported).
  860. #    + changed kf1 through kf4 to correspond with actual usage.  Though X
  861. #      supports keypad symbols for PF1 to PF4, and xterm interprets these
  862. #      correctly, the F1 to F4 codes are commonly (but incorrectly) used.
  863. #    + moved reset string from rs1 to rs2, to correlate better with termcap.
  864. #    + make khome consistent with other entries.
  865. #    + use rmul/smul, rmir/smir from termcap, but not rmcup/smcup because
  866. #      not everyone wants the alternate screen.
  867. #    + added u6, u7, u8, u9 strings for Daniel Weaver's tack program.
  868. #    + added kmous string for ncurses.
  869. xterm-r5|xterm R5 version,
  870.     am,
  871.     km,
  872.     msgr,
  873.     xenl,
  874.     cols#80,
  875.     it#8,
  876.     lines#24,
  877.     bel=^G,
  878.     blink@,
  879.     bold=\E[1m,
  880.     clear=\E[H\E[2J,
  881.     cr=^M,
  882.     csr=\E[%i%p1%d;%p2%dr,
  883.     cub=\E[%p1%dD,
  884.     cub1=^H,
  885.     cud=\E[%p1%dB,
  886.     cud1=^J,
  887.     cuf=\E[%p1%dC,
  888.     cuf1=\E[C,
  889.     cup=\E[%i%p1%d;%p2%dH,
  890.     cuu=\E[%p1%dA,
  891.     cuu1=\E[A,
  892.     dch=\E[%p1%dP,
  893.     dch1=\E[P,
  894.     dl=\E[%p1%dM,
  895.     dl1=\E[M,
  896.     ed=\E[J,
  897.     el=\E[K,
  898.     home=\E[H,
  899.     ht=^I,
  900.     hts=\EH,
  901.     ich=\E[%p1%d@,
  902.     ich1=\E[@,
  903.     il=\E[%p1%dL,
  904.     il1=\E[L,
  905.     ind=^J,
  906.     kbs=^H,
  907.     kcub1=\EOD,
  908.     kcud1=\EOB,
  909.     kcuf1=\EOC,
  910.     kcuu1=\EOA,
  911.     kdch1=\177,
  912.     kdl1=\E[31~,
  913.     kel=\E[8~,
  914.     kend=\E[4~,
  915.     kf0=\EOq,
  916.     kf1=\E[11~,
  917.     kf10=\E[21~,
  918.     kf11=\E[23~,
  919.     kf12=\E[24~,
  920.     kf2=\E[12~,
  921.     kf3=\E[13~,
  922.     kf4=\E[14~,
  923.     kf5=\E[15~,
  924.     kf6=\E[17~,
  925.     kf7=\E[18~,
  926.     kf8=\E[19~,
  927.     kf9=\E[20~,
  928.     khome=\E[1~,
  929.     kich1=\E[2~,
  930.     kil1=\E[30~,
  931.     kmous=\E[M,
  932.     knp=\E[6~,
  933.     kpp=\E[5~,
  934.     rc=\E8,
  935.     rev=\E[7m,
  936.     ri=\EM,
  937.     rmir=\E[4l,
  938.     rmkx=\E[?1l\E>,
  939.     rmso=\E[m,
  940.     rmul=\E[m,
  941.     rs2=\E>\E[?1;3;4;5;6l\E[4l\E[?7h\E[m\E[r\E[2J\E[H,
  942.     sc=\E7,
  943.     sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
  944.     sgr0=\E[m,
  945.     smir=\E[4h,
  946.     smkx=\E[?1h\E=,
  947.     smso=\E[7m,
  948.     smul=\E[4m,
  949.     tbc=\E[3g,
  950.     u6=\E[%i%d;%dR,
  951.     u7=\E[6n,
  952.     u8=\E[?1;2c,
  953.     u9=\E[c,
  954. #
  955. # This is the only entry which you should have to customize, since "xterm"
  956. # is widely used for a variety of incompatible terminal emulations including
  957. # color_xterm and rxvt.
  958. xterm|X11 terminal emulator,
  959.     use=xterm-xfree86,
  960. #    use=xterm-r6,
  961.